package com.rui.classTable.service.impl;

import com.rui.classTable.entity.ClassTable;
import com.rui.classTable.mapper.ClassTableMapper;
import com.rui.classTable.service.ClassTableService;
import com.rui.classTable.vo.classTableQuery;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service //交给spring容器进行管理
public class ClassTableServiceImpl implements ClassTableService {

    @Resource
    private ClassTableMapper classTableMapper;

    @Override
    public List<ClassTable> getClassTableList(classTableQuery param) {
        return classTableMapper.getClassTableList(param);
    }

    @Override
    public Long countClassTableList(classTableQuery param) {
        return classTableMapper.countClassTableList(param);
    }

    @Override
    public void addClassTable(ClassTable classTable) {
        classTableMapper.addClassTable(classTable) ;
    }

    @Override
    public void deleteClassBycls(String cls) {
        classTableMapper.deleteClassBycls(cls);
    }

    @Override
    public ClassTable getClassById(Integer id) {
        return classTableMapper.getClassById(id);
    }

    @Override
    public void updateClass(ClassTable classTable) {
        classTableMapper.updateClass(classTable);
    }
}
